package com.ast;

public class IfNode {
    CondNode cond;
    StmtNode thenStmt, elseStmt;
    public IfNode(CondNode cond, StmtNode thenStmt, StmtNode elseStmt) {
        this.cond = cond;
        this.thenStmt = thenStmt;
        this.elseStmt = elseStmt;
    }
    public IfNode(CondNode cond, StmtNode thenStmt) {
        this.cond = cond;
        this.thenStmt = thenStmt;
    }

    public CondNode getCond() {
        return cond;
    }

    public StmtNode getThenStmt() {
        return thenStmt;
    }

    public StmtNode getElseStmt() {
        return elseStmt;
    }
}
